import services from '@/services'

const state = {
  menusList: [],
};
const mutations = {
  getMenusList(state, data) {
    state.menusList = data;
  },
};
const actions = {

  /**
   * 获取文章分类列表
   */
  async menusList(store, params) {
    const {
      data = {}
    } = await services.menus.getMenusList(params);
    store.commit("getMenusList", data.data);
    return data;
  }
};
const getters = {}
export default {
  namespaced: true,
  state,
  actions,
  mutations,
  getters
}
